<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>字符串与十六进制转换工具</title>
    <link rel="stylesheet" href="{% static 'js/index.css'}">
</head>
<body>
    <div class="container">
        <h1>字符串与十六进制转换工具</h1>

        <div class="mode-indicator mode-convert" id="modeIndicator">
            当前模式: 字符串转十六进制
        </div>

        <div>
            <label for="inputString">输入内容:</label>
            <textarea id="inputString" placeholder="请输入要转换的字符串..."></textarea>
        </div>

        <div class="button-group">
            <button class="convert-btn" id="convertBtn">转换为十六进制</button>
            <button class="translate-btn" id="translateBtn">翻译为字符串</button>
        </div>

        <div id="result">
            <p>转换结果将显示在这里...</p>
        </div>
    </div>

    <div class="container">
        <h2>转换历史记录</h2>
        <div class="page-size-selector">
            <label for="pageSize">每页显示：</label>
            <select id="pageSize">
                <option value="10">10条</option>
                <option value="20">20条</option>
                <option value="50">50条</option>
            </select>
        </div>
        <div id="historyList">
            <p class="no-history">暂无历史记录</p>
        </div>
        <div id="pagination" class="pagination"></div>
    </div>

    <script src="{% static 'js/index.js'}"></script>
</body>
</html>